﻿@{
    ViewBag.Title = "我的抽奖记录";
    Layout = "~/Views/Shared/_LayoutFore.cshtml";
}
<div class="RightContrent">
    <div style="margin-left: 50px; margin-right: 50px;">
        <div class="tab-content">
            <div class="line10"></div>
            <div class="line10"></div>
            <div class="tab_title">@ViewBag.Title</div>
            <div class="tab-content">
                <div style="width: 16px; height: 12px; float: left;">
                    <img src="~/Content/Images/leftarraw.png" />
                </div>
            </div>

            <div class="tab-content_border">

                <div class="u-center">
                    <div class="line20"></div>

                    <div id="gridlist" class="xjgrid">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<form id="lottory">
</form>
<script>
    var util = {};
    var options = {
        listUrl: "@Url.Action("MyLottery")"
    };

    $(document).ready(function () {
        var gridopt = {
            url: options.listUrl,
            colModel: [
            { display: '编号', name: 'Id', width: "5%", sortable: true, hide: true, align: 'center', iskey: true },
            { display: '时间', name: 'CreateDate', width: "20%", sortable: false, align: 'center' },
            { display: '中奖情况', name: 'Prize', width: "20%", sortable: false, hide: false, align: 'center' },
            {
                display: '消耗积分', name: 'Total', width: "10%", sortable: false, align: 'center', process: function () { return 200; }
            },
            ],
            sortname: "Id",
            sortorder: "DESC",
            title: false,
            rp: 14,
            usepager: true,
            showcheckbox: false
        };
        var xjgrid = new xjGrid("gridlist", gridopt);

        $("#lottory").submit(function () {
            xjgrid.Query(this);
            return false;
        });
    });

</script>
